-- GENERATED SPELL FOR [Transitus Shield Warmage] --


function spell0_27175(pUnit, Event) --@Amplify Damage,n/a--
pUnit:FullCastSpellOnTarget(12738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27175', 10276, 1)
end

function spell1_27175(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(38526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27175', 595, 1)
end

function spell2_27175(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(17290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27175', 3000, 1)
end

function spell3_27175(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_27175', 0, 1)
end

function spell4_27175(pUnit, Event) --@Frostbolt,Self--
pUnit:FullCastSpellOnTarget(56837,pUnit)
pUnit:RegisterEvent('Sorts_27175', 7000, 1)
end

function spell5_27175(pUnit, Event) --@Polymorph,n/a--
pUnit:FullCastSpellOnTarget(13323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27175', 9500, 1)
end

function Sorts_27175(pUnit, Event)
local choix_sorts_27175 = math.random(0, 5)
if choix_sorts_27175 == 0 then
pUnit:RegisterEvent('spell0_27175', 1, 1)
end
if choix_sorts_27175 == 1 then
pUnit:RegisterEvent('spell1_27175', 1, 1)
end
if choix_sorts_27175 == 2 then
pUnit:RegisterEvent('spell2_27175', 1, 1)
end
if choix_sorts_27175 == 3 then
pUnit:RegisterEvent('spell3_27175', 1, 1)
end
if choix_sorts_27175 == 4 then
pUnit:RegisterEvent('spell4_27175', 1, 1)
end
if choix_sorts_27175 == 5 then
pUnit:RegisterEvent('spell5_27175', 1, 1)
end
end

function mob27175_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27175', math.random(1500, 3000), 1)
end

function mob27175_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27175_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27175_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27175, 1, 'mob27175_Action')
RegisterUnitEvent(27175, 2, 'mob27175_Leave')
RegisterUnitEvent(27175, 3, 'mob27175_Kill')
RegisterUnitEvent(27175, 4, 'mob27175_Die')
